package com.woniuxy.mapper;

import com.woniuxy.entity.UserAddress;

import java.util.List;

public interface AddressMapper {
    List<UserAddress> queryAddressByUserId(Integer userId);
    void addAddress(UserAddress userAddress);
    void updateAddress(UserAddress userAddress);
    void deleteAddress(Integer id);
    void changeDefaultAddress(UserAddress userAddress); //修改指定地址id的默认地址值
    UserAddress queryAddressById(Integer id);
}
